-
Notifications
You must be signed in to change notification settings - Fork 219
Product Gallery: Add a better default Dialog template part #11120
Product Gallery: Add a better default Dialog template part #11120
Conversation
The release ZIP for this PR is accessible via:
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: +172 B (0%) Total Size: 1.54 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this issue! I noticed that there is a style issue on the editor side on small screens:
Screen.Capture.Oct.10.mov
I am not sure about this, but it seems that this PR introduces some regression on the front side:
Screen.Capture.Oct.10.mp4
@gigitux Could you please elaborate further on what you mean by the style issue and the regression? Please also note from the description of the PR:
|
Sorry for not being clear, I was convinced that the videos were self-explanatory. On the editor side, the arrows disappear on "large window" and appear when the window is smaller. I think that this should be addressed. On the frontend side, during the zoom effect, it seems that the image moves. I think that this is a regression introduced by this PR. (I'm not able to replicate it on trunk) |
Thank you for clarifying, @gigitux!
Well, that's kind of to be expected. We can reduce the height of the Large Image in the editor, but then the placeholder will not extend to the full width of the container.
Do we want/need zoom in the Dialog? That behavior is to be expected if the image isn't wide enough to fill out the entire width. I'm not sure how we can "fix" this. Do you have any suggestions? |
Aaah ok! I didn't realize that there was a scrollbar. Could it sense to make the image smaller?
Since that we are using the same block in the dialog, we should support all the functionalities in any context. The only thing that we can do, is provide a default state that doesn't have the zoom effect enabled. The changes that I did in #11113 could help you. |
Would it be beneficial if it would fit in the viewport: yes. The question is how? It's set to Full-Width because that's how it's supposed to display in the front end. I don't know what a potential solution could be here.
I agree in principle (even though, for example, It will be very tricky to "fix", as the way it behaves now is technically correct. The problem is that the image isn't wide enough, so when Zoomed it's a wonky zoom. I'll have an additional look, next week. |
I was, unfortunately, unable to find a solution to this. For this not to be a blocker, I'd suggest disabling Zoom in the context of the Dialog altogether. cc: @gigitux thoughts? |
Did you try to pull |
This PR has been marked as If deemed still relevant, the pr can be kept active by ensuring it's up to date with the main branch and removing the stale label. |
This PR is no longer relevant. |
This PR tries to improve upon the default Dialog template.
What
This PR aims to address some of the concerns of woocommerce/woocommerce#42217.
Why
This PR changes how the Large Image behaves (and gets re-sized) in the Dialog in relation to the Thumbnails.
Testing Instructions
Please consider any edge cases this change may have, and also other areas of the product this may impact.
Appearance > Editor
.Template Parts > Product Gallery
.Row
alignment toTop
and save (this won't be needed when Product Gallery: Row justification setting isn't being saved #11104 is fixed):Screenshots or screencast
WooCommerce Visibility
Required:
Checklist
Required:
[type]
label or a[skip-changelog]
label.Conditional:
[skip-changelog]
label is not present).Changelog